Auto merge of #1371 - alexcrichton:issue-1289, r=huonw
authorbors <bors@rust-lang.org>
Tue, 3 Mar 2015 03:36:55 +0000 (03:36 +0000)
committerbors <bors@rust-lang.org>
Tue, 3 Mar 2015 03:36:55 +0000 (03:36 +0000)
commit8b5f88ef2c5cf9f0f711c526e0c2df88b117728b
tree3e53b6c3f5d64138f926a98756956ee850ac0d75
parent98e48728c9aeb98952a789c154076b6697cbfc86
parentb5f23288f7cedd188c7818b5ccdd6915ff2c343e
Auto merge of #1371 - alexcrichton:issue-1289, r=huonw

Before this commit the `dep_targets` function of `Context` didn't actually
return all dependencies in the sense that unit tests (and likely examples) would
not have the same package's library listed as a dependency. This commit
rectifies the situation by ensuring that the package's library is included
whenever necessary in the dependency list.

Closes #1289